<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
     <div th:replace="~{/fragment/header :: header}"></div>
    <div th:replace="~{/fragment/header :: header-css}"></div>
    <div th:replace="~{/fragment/header :: header-nav}"></div>
</head>
<body>
<div class="container">
    <a th:href="@{/order/insert}" class="btn btn-outline-success">新增</a>

    <table class="table table-striped">
        <thead>
        <tr>
            <td>序号</td>
            <td>入场时间</td>
            <td>离场时间</td>
            <td>缴费金额</td>
            <td>缴费完成状态</td>
            <td>是否开具发票</td>
            <td>收费标准</td>
            <td>停车场</td>
            <td>车牌号</td>
            <th></th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="order: ${list}">
            <td th:text="${order.id}"></td>
            <td th:text="*{#dates.format(order.inDateTime,'YYYY-MM-dd')}"></td>
            <td th:text="*{#dates.format(order.outDateTime,'YYYY-MM-dd')}"></td>
            <td th:text="${order.price}"></td>
            <td th:text="${order.isPayComplete}"></td>
            <td th:text="${order.isRequireInvoicing}"></td>
            <td th:text="${order.pricingStandard.id}"></td>
            <td th:text="${order.parkingLot.id}"></td>
            <td th:text="${order.vehicle.licencePlate}"></td>
            <td>
                <a th:href="@{/order/edit/{id}(id=${order.id})}"  class="btn btn-outline-info">修改</a>
                <a th:href="@{/order/detail/{id}(id=${order.id})}" class="btn btn-outline-warning">详情信息</a>
                <a th:href="@{/order/delete/{id}(id=${order.id})}" class="btn btn-outline-danger">删除</a>

            </td>

        </tr>
        </tbody>
    </table>
</div>
<div th:replace="~{/fragment/header :: header-js}"></div>
<div th:replace="~{/fragment/footer :: footer}"></div>
</body>
</html>